<template>
  <div id="user">
    <headers>
      <div slot="conter">我的</div>
    </headers>

    <div class="user-info">
      <img src="../../assets/img/common/placeholder.png" alt="" />
      <div class="name">
        <div>登录/注册</div>
        <span>暂无绑定手机号</span>
      </div>
      <i class="iconfont icon-you"></i>
    </div>

    <div class="money">
      <div>
        <p><strong>0.00</strong>元</p>
        <span>我的余额</span>
      </div>
      <div>
        <p><strong>0</strong>个</p>
        <span>我的优惠</span>
      </div>
      <div>
        <p><strong>0</strong>分</p>
        <span>我的积分</span>
      </div>
    </div>

    <div class="service">
      <ul>
        <li>
          <i class="iconfont icon-kefu"></i>
          <span>我的消息</span>
        </li>
        <li>
          <i class="iconfont icon-dianpu"></i>
          <span>积分商城</span>
        </li>
        <li>
          <i class="iconfont icon-follow"></i>
          <span>会员卡</span>
        </li>
      </ul>
    </div>

    <div class="other service">
      <ul>
        <li>
          <i class="iconfont icon-che-copy"></i>
          <span>我的购物车</span>
        </li>
        <li>
          <i class="iconfont icon-category01"></i>
          <span>下载APP</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import Headers from '../../components/content/Headers'

export default {
  data() {
    return {}
  },
  components: {
    Headers
  },
  methods: {}
}
</script>

<style lang="less" scoped>
#user {
  height: 100vh;
  background-color: #f5f5f5;
  .user-info {
    background-color: var(--color-tint);
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 13px;
    color: #fff;
    .name > div {
      font-size: 16px;
      margin-bottom: 3px;
    }
    .iconfont {
      position: absolute;
      right: 10px;
    }
    img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      margin-right: 10px;
    }
  }
  .money {
    display: flex;
    text-align: center;
    background-color: #fff;
    font-size: 14px;
    div {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 15px;
      strong {
        font-size: 24px;
        color: #ff5f3e;
      }
    }
    div:nth-child(2) {
      border-left: 1px solid #eee;
      border-right: 1px solid #eee;
    }
  }
  .service {
    margin-top: 15px;
    background-color: #fff;
    ul {
      padding: 0 10px;
    }
    li {
      height: 40px;
      line-height: 40px;
      display: flex;
      font-size: 15px;
      border-bottom: 1px solid #eee;
      .iconfont {
        font-size: 20px;
        margin-right: 10px;
      }
    }
  }
}
</style>
